require 'json'
require 'spoule/json'

module Spoule
  class Auth
    include Spoule::Json

    attr_reader :url, :description
    def initialize(url, description)
      @url = url
      @description = description
    end

    def to_json(*opts)
      s  = _format_json_prefix(url, opts)
      s += _format_json_kvp('description', description)
      s += _format_json_suffix
    end
  end
end # module Spoule
